package org.leon.mapper;

import org.apache.ibatis.annotations.Select;
import org.leon.pojo.Role;

import java.util.List;


public interface RoleMapper {

    @Select("select id, role_name as roleName from sys_role r, sys_user_role ur where r.id=ur.role_id and ur.user_id=#{uid}")
    List<Role> findRoleByUserIdByAnon(Integer uid);
}
